package Example16;
class Animal{
    public void shout(){
        System.out.println("叽喳~叽喳~叽喳");
    }
}
class Dog extends Example16.Animal {
    public void eat(){
        System.out.println("咩~咩~咩");
    }
    public void ea(){
        System.out.println("吃一双蚂蚁");
    }
}

public class Exa16 {
    public static void main (String[] args){
        Animal an = new Dog();
        Dog dog = (Dog) an;
        dog.shout();
        dog.eat();
    }
}
